package com.hk.housekeeping.service;

import com.hk.housekeeping.entity.OrderItem;
import com.hk.housekeeping.entity.RespItemDetail;
import com.hk.housekeeping.utils.PageUtils;
import com.hk.housekeeping.utils.ResponseEntity;

import java.util.List;

public interface ItemServ {
    //分页插叙
    ResponseEntity<PageUtils<List<OrderItem>>> pageSelect(int currentPage, int pageSize);

    //删除一条项目记录
    ResponseEntity<Integer> deleteItem(int id);

    //按照项目名字进行查找
    ResponseEntity<PageUtils<List<OrderItem>>> searchByName(String name, int currentPage, int pageSize);

    //按照项目的起始时间进行范围查找
    ResponseEntity<PageUtils<List<OrderItem>>> searchByTime(String startTime, String endTime, int currentPage, int pageSize);

    //查看详情（返回项目详情表数据）
    ResponseEntity<RespItemDetail> detailView(int itemId);

    //修改项目详情
    ResponseEntity<Integer> updateItemDetail(RespItemDetail respItemDetail);

    //增加一个服务项目
    ResponseEntity<Integer> addItem(OrderItem orderItem);
}
